;(function($,window, PageObject){

    // 页面初始化
    PageObject.init = function(){

        // 初始化查询
        this.queryList();
        // 查询条件禁止输入%,_
        CommonScript.limitInputSpecial($("#searchForm input"),['%','_']);
        // 绑定回车查询
        CommonScript.keyEnter.on(0,this.queryList);
    };

    // 页面查询方法
    PageObject.queryList = function(){
        // 参数：表格Id、初始化参数、请求路径、请求所需参数
        var gridQueryParam = {
            gridObj:'queryGrid',
            isInit:PageObject.isInit,
            url:PageObjectUrl.queryGrid,
            queryParams:{
            	
            }
        };

        PageObject.isInit = CommonPageScript.dataGridInit(gridQueryParam);
    };

})(jQuery,window, window.PageObject = {});
    
    function editOrder(rowIndex, rowData){
        $('#lookOrder').dialog('open');
    }
    function lookGoods(){
        $('#lookShipmentAtMain').dialog('open');
    }
    function leaveMessageDialog(){
        $('#leaveMessageDialog').dialog('open');
    }
    function attachmentFormatter(value,row,rowIndex){
        return "<a href='javascript:void(0);' style='color:blue;' onclick='lookGoods();'>" + value + "</a>";
    }
    function leaveMessage(value,row,rowIndex){
        return "<a href='javascript:void(0);' style='color:blue;' onclick='leaveMessageDialog();'>拉黑</a><a href='javascript:void(0);' style='color:blue;margin-left:10px;' onclick=''>详情</a>";
    }